import json

from mockee import Mockee

if __name__ == '__main__':
    mockee = Mockee('defs.json')
    data = mockee.make('GET:/api/test', {
        'date_range': ['2020-01-01', '2020-12-31'],
        'date_fmt': '%Y-%m-%d'
    })
    with open('result.json', mode='w', encoding='utf8') as fp:
        json.dump(data, fp, ensure_ascii=False, indent=2)
